execute if entity @e[tag=rmr.rotten_pillager_captain] run return fail
execute at @s run function rmr:entity/rotten_pillager_captain/spawn